#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include<QTimer>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
    MyCoin(QString imgpath);
    //硬币的状态
    int posX;
    int posY;
    bool flag;
    void changeFlag();
    QTimer*timer1;
    QTimer*timer2;
    int min=1;//最小图片
    int max=8;//最大图片
    bool isAnimation=false;

    bool isWin=false;
    //重写鼠标按下事件
    void mousePressEvent(QMouseEvent*e);

signals:
};

#endif // MYCOIN_H
